package cn.micro.eye.type;

import cn.micro.eye.commons.validate.IEnum;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Arrays;
import java.util.List;

/**
 * 用户注册类型
 *
 * @author lry
 */
@Getter
@AllArgsConstructor
public enum RegisterTypeEnum implements IEnum {

    EMAIL(1, "邮箱"),
    PHONE(2, "手机"),
    ID_CARD(3, "身份证"),
    WX(4, "微信"),
    ALI(5, "支付宝");

    public static final List<Integer> GROUP = Arrays.asList(1, 2, 3, 4, 5);

    private final int value;
    private final String title;

}
